<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "https://www.springframework.org/dtd/spring-beans-2.0.dtd">

<beans>

	<bean class="org.springframework.scripting.support.ScriptFactoryPostProcessor"/>


	<bean id="calculator" class="org.springframework.scripting.groovy.GroovyScriptFactory">
		<constructor-arg value="classpath:org/springframework/scripting/groovy/Calculator.groovy"/>
		<constructor-arg>
			<bean class="org.springframework.scripting.groovy.GroovyScriptFactoryTests$TestCustomizer" />
		</constructor-arg>
	
	</bean>

	<bean id="delegatingCalculator" class="org.springframework.scripting.groovy.GroovyScriptFactory">
		<constructor-arg value="classpath:org/springframework/scripting/groovy/DelegatingCalculator.groovy"/>
	
		<property name="delegate" ref="calculator"/>
	
	</bean>


</beans>